package com.dc.designPattern._21_strategy.impl;

import com.dc.designPattern._21_strategy.impl.fly.FlyNoWay;

/**
 * Description: 策略模式_大黄鸭
 * @author: gdc
 * @date: 2021/6/9
 * @version 1.0
 */
public class BigYellowDuck extends Duck{

    public BigYellowDuck() {
        super();
        // 飞行策略_不会飞行
        super.setFlyingStragety(new FlyNoWay());
    }

    @Override
    public void display() {
        System.out.println("我是大黄鸭，身体很大，颜色黄黄。。");
    }

}